<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.hitrust.gs.vo.GSOrderDetailOfBusForSWVO"%>
<%
ArrayList tOrderDetailList = (ArrayList)request.getAttribute("OrderDetailList");

String[] tInitOrder = (String[])tOrderDetailList.get(0);
%>


<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>沃尔沃配件订货要约书</title>
<STYLE type="text/css">
<!--
.STYLE1 {
	font-size: 15px;
	font-weight: bold;
}
-->
</STYLE>
<STYLE type="text/css">
<!--
.border {
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: none;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.border3 {
	border-right-width: 1px;
		border-top-style: none;
	border-right-style: solid;
	border-bottom-style: none;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.border4 {
	border-bottom-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.border2 {
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: solid;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.border5 {
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: none;
	border-top-color: #000000;
	border-right-color: #000000;
	border-bottom-color: #000000;
	border-left-color: #000000;
}
.title1 {  font-family: "宋体"; font-size: 14px; font-weight: bold}
.monitor {
	width : 800px;
}
.printer {
	width : 16.7cm;
}

td {
	font-size: 13px;
	height:30px;
}

-->
</STYLE>
<SCRIPT  LANGUAGE=javascript>
function window_beforeprint()
{
	var tables = document.all("content");
	for(var i=0; i<tables.length; i++)
		tables[i].className = "printer";
	document.all.noprint.style.display="none";
	document.all.noprint.style.height = 0;
}

function window_afterprint()
{
	var tables = document.all("content");
	for(var i=0; i<tables.length; i++)
		tables[i].className = "monitor";
	document.all.noprint.style.display="";
}
function printsetup()
{ 
    wb.execwb(8,1); 
} 
function printpreview()
{ 
  wb.execwb(7,1); 
} 

function printit() 
{ 
  if (confirm('确定打印吗？')) 
  { 
    wb.execwb(6,6) 
  } 
} 

function initMethod() 
{ 
  window.opener.returnValue = 'true';
  window.opener.close();  
} 
</SCRIPT>
</head>

<body onload="initMethod()" leftmargin="0" topmargin="0" ONBEFOREPRINT="return window_beforeprint()" ONAFTERPRINT="return window_afterprint()">
<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height=0 id=wb name=wb width=0>
</OBJECT>
<table width="80%" border="0" align="center" id="content">
<tr>
<td>
<table width="98%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="6" class="title1"><div align="center"><strong>上海巴士物资实业有限公司</strong></div></td>
  </tr>
  <tr>
    <td colspan="6" class="title1"><div align="center"><strong>沃尔沃配件订货要约书</strong></div></td>
  </tr>
  <tr>
    <td width="14%">订单号：</td>
    <td width="20%"><%=tInitOrder[20]==null?"":tInitOrder[20] %></td>
    <td width="10%"> 级别： </td>
    <td width="6%" style="text-align:right"> 1级</td>
    <td width="15%" style="text-align:right">订单日期 </td>
    <td width="37%"><%=tInitOrder[21]==null?"":tInitOrder[21] %></td>
  </tr>
  </table>
  </td>
  </tr>
  <tr>
  <td><table width="98%" border="0" cellpadding="2" cellspacing="0" class="border">
  <tr>
    <td class="border2" >需方</td>
    <td colspan="5" align="center" class="border2">上海巴士物资采购管理有限公司</td>
    </tr>
   <tr>
    <td class="border2">地址</td>
    <td colspan="5" align="center" class="border2">汶水路140号 204室</td>
    </tr>
  <tr>
    <td class="border2">联系电话</td>
    <td class="border2">33608584*251</td>
    <td class="border2">传 真</td>
    <td class="border2">56776713</td>
    <td class="border2">联系人</td>
    <td class="border2">徐秉钦</td>
  </tr>
  <tr>
    <td class="border2">供方</td>
    <td colspan="5" align="center" class="border2">上海申沃客车有限公司售后服务部、配件部</td>
    </tr>
  <tr>
    <td class="border2">地址</td>
    <td colspan="5" align="center" class="border2">上海市闵行区光中路18号</td>
    </tr>
  <tr>
    <td class="border2">联系电话</td>
    <td class="border2">24160089</td>
    <td class="border2">传 真</td>
    <td class="border2">24160292</td>
    <td class="border2">联系人</td>
    <td class="border2">童丽娜</td>
  </tr>
  <tr>
    <td rowspan="2" class="border2">收货仓库</td>
    <td colspan="3" class="border2">名 称：<%=tInitOrder[22]%></td>
    <td class="border2">电 话</td>
    <td class="border2">&nbsp;<%=tInitOrder[24]%></td>
  </tr>
  <tr>
    <td colspan="3" class="border2">地 址：<%=tInitOrder[19]%></td>
    <td class="border2">收货确认</td>
    <td class="border2">&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" cellpadding="2" cellspacing="0" class="border">
	<tr>
		<td align="center" class="border2" colspan="6">需求产品信息
		</td>
		</tr>
	<tr>
		<td class="border2" width="10%">序</td>
		<td class="border2" width="15%">图件号</td>
		<td class="border2" width="25%">名称</td>
		<td class="border2" width="15%">网号</td>				
		<td class="border2" width="15%">数量</td>		
		<td class="border2">备注</td>				
	</tr>	
<%
//*
    int i = 0;
    for( i=0; i<tOrderDetailList.size(); i++) {
        String[] tOrderDetail = (String[])tOrderDetailList.get(i);

%>    
    
	<tr>
		<td class="border2">&nbsp;<%=i+1 %></td>
		<td class="border2">&nbsp;<%=tOrderDetail[18]%></td>
		<td class="border2">&nbsp;<%=tOrderDetail[2]%></td>
		<td class="border2">&nbsp;<%=tOrderDetail[1] %></td>				
		<td class="border2">&nbsp;<%=tOrderDetail[7] %> <%=tOrderDetail[8] %></td>		
		<td class="border2">&nbsp;</td>				
	</tr>	
<%
    }
    for(int j=14-i; j>=0; j--) {
%>   
    <tr>
        <td class="border2">&nbsp;<%=15-j %></td>
        <td class="border2">&nbsp;</td>
        <td class="border2">&nbsp;</td>
        <td class="border2">&nbsp;</td>               
        <td class="border2">&nbsp;</td>        
        <td class="border2">&nbsp;</td>             
    </tr>    		
<%
    }
    //*/
%>
</table>

  </td>
  </tr>
</table><br>


				    <SPAN id="noprint" style="height:0">
					  <TABLE width="100%">
						<TR>
						  <TD align=center>
							<INPUT type=button class=buttons name=button_print value="   打印  " onClick="javascript:printit()">
							<INPUT type=button class=buttons name=button_setup value=" 页面设置 "  onclick="javascript:printsetup();">
							<INPUT type=button class=buttons name=button_show value=" 打印预览 " onClick="javascript:printpreview();">
							<INPUT type=button class=buttons name=button_fh value="   关闭  " onClick="window.close();">
						  </TD>
						</TR>
					  </TABLE>
					</SPAN>	 
</body>
</html>
